package view.Core;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.TabHost;

public class TabLayout_Activities extends TabActivity {
	private String treeID, treeID2;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tab);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        Resources res = getResources(); 
        TabHost tabHost = getTabHost();  
        TabHost.TabSpec spec;  
        Intent intent;  

 
        // tab1
        intent = new Intent().setClass(this, tab_tressDataShow.class);

        spec = tabHost.newTabSpec("tab1").setIndicator("Info",
                          res.getDrawable(R.drawable.app_tree_icon))
                      .setContent(intent);
        tabHost.addTab(spec);
        
        
        // tab2
        intent = new Intent().setClass(this, tab_tressMapShow.class);

        spec = tabHost.newTabSpec("tab2").setIndicator("Map",
                          res.getDrawable(R.drawable.app_tree_icon))
                      .setContent(intent);
        tabHost.addTab(spec);

        

        

        

        tabHost.setCurrentTab(0);
    }
}
